/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.chl.niclun.projectwebshop.nbp.DataBase;


import edu.chl.niclun.projectwebshop.nbp.Entities.Movie;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

/**
 * A locator for JPA controllers and others...
 * 
 * @author hajo
 */
public final class Database {

    private static final EntityManagerFactory emf =
    Persistence.createEntityManagerFactory("ProjectWebShop_pu");
    private static final IJpaCtrl webShopCtrl = new WebshopjpaCtrl(null, emf); 
          
   
    
    private Database() {
    }
    
    public static IJpaCtrl<Movie> getWebshopController() {
        return webShopCtrl;
    }
}
